//------------------------------------------------------------------------------
#include "CDAO.h"
//------------------------------------------------------------------------------
QString CDAO::toString(void) {
	QString ret="";
	QString s="";
	
	for(int i=0;i<fields.size();i++) {
		ret+=s+"["+fields.at(i)+" = "+get(fields.at(i)).toString()+"]";
		s=", ";
	}
	
	return ret;
}
//------------------------------------------------------------------------------
void CDAO::toNull(void) {
	for(int i=0;i<fields.size();i++) {
		set(fields.at(i), QVariant());
	}
}
//------------------------------------------------------------------------------